Skip to content

Add support for Atziri's Splendour mana to life cost conversion for corrupted gems#2312

Open
slaren wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
slaren:sl/splendour-cost-conversion
Open

Add support for Atziri's Splendour mana to life cost conversion for corrupted gems#2312
slaren wants to merge 2 commits into
PathOfBuildingCommunity:devfrom
slaren:sl/splendour-cost-conversion

Conversation

@slaren

@slaren slaren commented Jun 27, 2026

Copy link
Copy Markdown

Description of the problem being solved:

The mod "Skills from Corrupted Gems have 50% of Mana Costs Converted to Life Costs" from Atziri's Splendour is not supported.

Steps taken to verify a working solution:

  • Toggle between corrupted and uncorrupted skill gem
  • Verify that skill costs match the game tooltip

I am not sure if this is the best way to add the "GemCorrupted" condition, any feedback is appreciated.

{ stat = "BrandAttachmentRangeMetre", label = "Attachment Range", fmt = ".1fm", flag = "brand" },
{ stat = "BrandTicks", label = "Activations per Brand", fmt = "d", flag = "brand" },
{ stat = "ManaCost", label = "Mana Cost", fmt = "d", color = colorCodes.MANA, pool = "ManaUnreserved", compPercent = true, lowerIsBetter = true, condFunc = function(v,o) return o.ManaHasCost end },
{ stat = "ManaCost", label = "Mana Cost", fmt = ".0f", color = colorCodes.MANA, pool = "ManaUnreserved", compPercent = true, lowerIsBetter = true, condFunc = function(v,o) return o.ManaHasCost end },

@slaren slaren Jun 27, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is somewhat unrelated, but while working on this I noticed that the mana cost display was not being rounded, so in some cases it would be off by one when compared to the in-game tooltip.

Comment thread src/Modules/CalcActiveSkill.lua Outdated
Comment on lines +697 to +699
if activeEffect.srcInstance and activeEffect.srcInstance.corrupted then
activeSkill.skillCfg.skillCond["GemCorrupted"] = true
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be moved to line 771? As it's already checking for corrupted there.

	if activeSkill.activeEffect.srcInstance and activeSkill.activeEffect.srcInstance.corrupted and not (activeSkill.activeEffect.srcInstance.fromItem or activeSkill.activeEffect.srcInstance.fromTree or activeSkill.activeEffect.grantedEffect.fromItem or activeSkill.activeEffect.grantedEffect.fromTree) then
		skillModList:NewMod("GemCorruptionLevel", "BASE", activeSkill.activeEffect.srcInstance.corruptLevel, "Corruption")
	end

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants